-- GENERATED SPELL FOR [Skullsplitter Spiritchaser] --


function spell0_672(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_672', 3000, 1)
end

function spell1_672(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_672', 3000, 1)
end

function spell2_672(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(11981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_672', 3000, 1)
end

function Sorts_672(pUnit, Event)
local choix_sorts_672 = math.random(0, 2)
if choix_sorts_672 == 0 then
pUnit:RegisterEvent('spell0_672', 1, 1)
end
if choix_sorts_672 == 1 then
pUnit:RegisterEvent('spell1_672', 1, 1)
end
if choix_sorts_672 == 2 then
pUnit:RegisterEvent('spell2_672', 1, 1)
end
end

function mob672_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_672', math.random(1500, 3000), 1)
end

function mob672_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob672_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob672_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(672, 1, 'mob672_Action')
RegisterUnitEvent(672, 2, 'mob672_Leave')
RegisterUnitEvent(672, 3, 'mob672_Kill')
RegisterUnitEvent(672, 4, 'mob672_Die')
